﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.Business.DLL.Base;
using Tauren.Business.Entity.Model;
using Tauren.Business.Entity.Output;

namespace Tauren.Business.DLL.ButtonDLL
{
    /// <summary>
    /// 按钮资源
    /// </summary>
    public interface IButtonsBusiness : IBaseDLL
    {

        /// <summary>
        /// 新增数据
        /// </summary>
        /// <returns></returns>
        long Add(Buttons data);

        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        bool Edit(Buttons data);

        /// <summary>
        /// 主键数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        bool PhysicallyDeleted(long AutoID);

        /// <summary>
        /// 根据资源ID获取指定资源
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        List<ButtonsTable> Get(long AutoID);

        /// <summary>
        /// 分页获取资源信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        List<PageButtonsTable> Pages(Entity.Global.QueryModel queryModel, out long Total);


        /// <summary>
        /// 保存多语言
        /// </summary>
        /// <returns></returns>
        bool Add(List<ButtonRes> resoucesRes);


        /// <summary>
        /// 根据资源ID获取指定资源
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        Buttons Singe(long AutoID);

    }
}
